package com.online.demo.service;

import com.github.pagehelper.Page;
import com.github.pagehelper.PageInfo;
import com.online.demo.entity.ContentSolrEntity;
import com.online.demo.entity.TContent;
import com.online.demo.entity.TType;

import java.util.List;
import java.util.Map;

public interface ISolrService {

    public int addOrUpdateContentToSolr(TContent content, TType type, String nickName);

    public int addOrUpdateContentListToSolr(List<ContentSolrEntity> contentList);

    public int deleteContentById(String id);

    public int deleteContentByIdList(List<String> idList);

    public List<ContentSolrEntity> findContentByKeyWords(String keywords);

    public int viewNumAddOne(int id);

    public PageInfo<ContentSolrEntity> findContentByKeyWordsForPage(Integer index, Integer size, String keywords);




}
